package com.uyayo.system.config.service;

import com.uyayo.framework.common.exception.CodeMultipleException;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.system.config.entity.SysPermissionInit;
import com.uyayo.system.config.model.SysPermissionInitCondition;

import java.util.List;

public interface SysPermissionInitService {

	SysPermissionInit getSysPermissionInitById(long id);

	PageBean<SysPermissionInit> selectSysPermissionInit(PageBean<SysPermissionInit> pageBean, SysPermissionInitCondition sysPermissionInitCondition);

	public List<SysPermissionInit> queryAll(SysPermissionInit sysPermissionInit);

	List<SysPermissionInit> selectSysPermissionInit(SysPermissionInit sysPermissionInit);
	
	int saveSysPermissionInit(SysPermissionInit sysPermissionInit) throws CodeMultipleException;

	int updateSysPermissionInit(SysPermissionInit sysPermissionInit) throws CodeMultipleException;

	int deleteSysPermissionInitById(Long id);

	SysPermissionInit getSysPermissionInitByCode(String code);

	SysPermissionInit getSysPermissionInitByEnabled();
}
